package org.easyx.ser.oa.entity;

import org.easyx.core.db.entity.BaseEntity;
import org.easyx.core.utils.ObjKit;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;

/**
 * <p>
 * 信息图片表
 * </p>
 *
 * @author xiaojl
 * @since 2017-09-29
 */
@TableName("info_pictures")
public class Pictures extends BaseEntity<Pictures> {

    private static final long serialVersionUID = 1L;

    /**
     * 标题
     */
	private String title;
	
    /**
     * 文件名
     */
	private String picName;
	
    /**
     * 路径
     */
	private String picPath;
	
    /**
     * 备注
     */
	private String remark;
	


	@Override
	public Wrapper<Pictures> bindingQueryWrapper() {
		Wrapper<Pictures> wrapper = new EntityWrapper<Pictures>();
		if(ObjKit.isNotEmpty(this.title)){
			wrapper.like("title", this.title);
		}
		if(ObjKit.isNotEmpty(this.picName)){
			wrapper.like("picName", this.picName);
		}
		if(ObjKit.isNotEmpty(this.picPath)){
			wrapper.like("picPath", this.picPath);
		}
		if(ObjKit.isNotEmpty(this.remark)){
			wrapper.like("remark", this.remark);
		}
		if(ObjKit.isNotEmpty(this.createTimeStart)){
			wrapper.gt("createTime", this.createTimeStart);
		}
		if(ObjKit.isNotEmpty(this.createTimeEnd)){
			wrapper.lt("createTime", this.createTimeEnd);
		}
		return wrapper;
	}


	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPicName() {
		return picName;
	}

	public void setPicName(String picName) {
		this.picName = picName;
	}

	public String getPicPath() {
		return picPath;
	}

	public void setPicPath(String picPath) {
		this.picPath = picPath;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}


	@Override
	public String toString() {
		return "Pictures [ id=" + id 
				+ " title=" + title + ","
				+ " picName=" + picName + ","
				+ " picPath=" + picPath + ","
				+ " remark=" + remark + ","
				+ " createBy=" + createBy + ", createTime=" + createTime
				+ ", delFlag=" + delFlag + ", createTimeStart="
				+ createTimeStart + ", createTimeEnd=" + createTimeEnd + "]";
	}

}
